package cn.edu.abtu.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 评论(EduComment)实体类
 *
 * @author makejava
 * @since 2022-10-06 09:59:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class EduComment {
    
    /**
     * 讲师ID
     */
    @TableId(value = "id",type = IdType.ID_WORKER_STR)
    private String id;
    /**
     * 课程id
     */
    private String courseId;
    /**
     * 讲师id
     */
    private String teacherId;
    /**
     * 会员id
     */
    private String memberId;
    /**
     * 会员昵称
     */
    private String nickname;
    /**
     * 会员头像
     */
    private String avatar;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
    private Integer isDeleted;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd hh:mm:ss")
    private Date gmtCreate;
    /**
     * 更新时间
     */
    private Date gmtModified;

}
